package textui.example;

import textui.UIElement;
import textui.UIElementBuilder;

public class UIBuilders {
	/**
	 * Generates a builder that creates an exit UI element
	 * @return
	 */
	public static UIElementBuilder generateExit() {
		return new UIElementBuilder() {

			@Override
			public UIElement build() {
				return new UIElement(null) {

					@Override
					public UIElement run() {
						return null;
					}
				};
			}
		};
	}
}
